namespace SimpleWebServices.Web.UI.Html
{
    using System;
    using Xunit;

    public sealed class IOptionFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IOption).IsInterface);
        }

        [Fact]
        public void IOption_Label_get()
        {
            try
            {
                string value = (new IOptionDummy() as IOption).Label;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IOption_Label_set()
        {
            try
            {
                (new IOptionDummy() as IOption).Label = string.Empty;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}